import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/Home.vue'),
      children: [
        {
          path: 'network-terms',
          name: 'network_terms',
          component: () => import('@/views/NetworkTerms/Index/Index.vue')
        },
        {
          path: 'new-product',
          name: 'new_product',
          component: () => import('@/views/NewProduct/Index/Index.vue')
        },
        {
          path: 'pajamas',
          name: 'pajamas',
          component: () => import('@/views/Pajamas/Index/Index.vue')
        },
        {
          path: 'pajamas-product',
          name: 'pajamas_product',
          component: () => import('@/views/Pajamas/Product/Product.vue')
        },
        {
          path: 'pajamas-product-detail',
          name: 'pajamas_product_detail',
          component: () => import('@/views/Pajamas/ProductDetail/ProductDetail.vue')
        },
        {
          path: 'pink',
          name: 'pink',
          component: () => import('@/views/Pink/Index/Index.vue')
        },
        {
          path: 'shopping-car',
          name: 'shopping_car',
          component: () => import('@/views/ShoppingCar/Index/Index.vue')
        },
        {
          path: 'payment-page',
          name: 'shopping_car_payment_page',
          component: () => import('@/views/ShoppingCar/PaymentPage/PaymentPage.vue')
        },
        {
          path: 'wedding-dress',
          name: 'wedding_dress',
          component: () => import('@/views/WeddingDress/Index/Index.vue')
        },
        {
          path: 'custom-made-designer',
          name: 'custom_made_designer',
          component: () => import('@/views/WeddingDress/CustomMadeDesigner/CustomMadeDesigner.vue')
        },
        {
          path: 'custom-made-form',
          name: 'custom_made_form',
          component: () => import('@/views/WeddingDress/CustomMadeForm/CustomMadeForm.vue')
        },
        {
          path: 'weimi-show',
          name: 'weimi_show',
          component: () => import('@/views/WeimiShow/Index/Index.vue')
        },
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/Login/Index/Index.vue')
    },
    {
      path: '/menber_detail',
      name: 'menber_detail',
      component: () => import('@/views/Login/MemberDetail/MemberDetail.vue')
    }
  ]
})

export default router
